--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To post to this group, send email to swfo...@googlegroups.com.
To unsubscribe from this group, send email to swfobject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
swfobject.removeSWF("videoframe");
Hi Sam,
Thanks for the rapid response. I feel I am a beginner in a man's
world.
I tried onclick="javascript:document.getElementById
('videoframe').removeSWF("kophillintro2.swf"); changemenu
('home_page')";
where "videoframe" is the Id of the object and "kophillintro2" the
name of the video. No effect in Firefox or IE.
The document.getElementById('videoframe').stop(); works in IE but not
in Firefox. This when when in IE is very good (it operates like
"pause" because if you go back to the video you can start it from
where you stopped it.)
Bob Woodman
On Nov 30, 1:17 pm, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> I would removeSwf when changing from the video tab to any other tab
>
> then when (re-)activating the video tab createSwf
>
> http://code.google.com/p/swfobject/wiki/api
>
> - S
>
> 2009/11/30 bob.woodman <bob.wood...@btopenworld.com>
>
> > Hi,
>
> > Onwww.kophillclimb.org.uk/_index.htmlI am using swfobject 2 to
> > deliver a video on startup. I provide a tab to switch to a new page if
> > the user wishes to cut it short and view the rest of the web site. On
> > firefox as soon as the "Video Page" has its display set to none the
> > video stops. On IE7 the video carries on but is not shown, however the
> > sound continues.
>
> > How can I get IE to stop playing the video?
>
> > Any help appreciated.
>
> > Bob Woodman
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "SWFObject" group.
> > To post to this group, send email to swfo...@googlegroups.com.
> > To unsubscribe from this group, send email to
swfobject.removeSWF("videoframe");
certainly got both browsers working in the same way and the video halted.
I feel most inadequete since if I had read on within your tutorials I am sure I would have been able to sort it out myself.
However, I am not capable of re-starting the video if you go to www.kophillclimb.org.uk/_index1.html you will see I have inserted into the javascript
function
newvideo()
{
var h =
document.getElementsByTagName("head")[0];
var s =
document.createElement("script");
s.setAttribute("id",
"dynamicSwfobject");
s.setAttribute("type",
"text/javascript");
s.setAttribute("src",
"swfobject.js");
h.appendChild(s);
var
t = setInterval(function()
{var a = typeof
swfobject;
if (typeof swfobject !=
"undefined")
{
var flashvars = {};
var params =
{loop:"false"};
var attributes =
{};
swfobject.embedSWF("kophillintro2.swf",
"videoframe", "599", "479", "9.0.0", "expressInstall.swf", flashvars, params,
attributes);
clearInterval(t);
t
= null;
}
},
50);
}
and I have called it from the HTML line 85 with - onclick="newvideo()". The javascript seems to have worked but the video does not restart!Any help appreciated.
Bob Woodman
---- Original Message -----
To unsubscribe from this group, send email to swfobject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.426 / Virus Database: 270.14.87/2536 - Release Date: 11/30/09 07:31:00
Version: 8.5.426 / Virus Database: 270.14.96/2548 - Release Date: 12/06/09 07:30:00